package GUI.SalesEmployee;

import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JScrollBar;
import javax.swing.JCheckBox;
import javax.swing.JEditorPane;
import javax.swing.JScrollPane;

import java.awt.ScrollPane;
import java.awt.Choice;
import java.awt.Checkbox;
import java.awt.event.ActionListener;

import javax.swing.JTable;

public class SetOrderPnl extends JPanel {
	public JTextField textFieldEmpId;
	public JTextField textFieldClientId;
	public JTextField textFieldDate;
	public JButton btnaddOrder;
	
	/**
	 * Create the panel.
	 */
	public SetOrderPnl() {
		setLayout(null);
		
		btnaddOrder = new JButton("Set Order");
		btnaddOrder.setBounds(339, 235, 89, 23);
		add(btnaddOrder);
		
		JLabel lblNewLabel = new JLabel("Employee Id:");
		lblNewLabel.setBounds(31, 32, 89, 14);
		add(lblNewLabel);
		
		textFieldEmpId = new JTextField();
		textFieldEmpId.setBounds(106, 29, 130, 20);
		add(textFieldEmpId);
		textFieldEmpId.setColumns(10);
		
		JLabel lblClientId = new JLabel("Client Id :");
		lblClientId.setBounds(31, 70, 58, 14);
		add(lblClientId);
		
		textFieldClientId = new JTextField();
		textFieldClientId.setColumns(10);
		textFieldClientId.setBounds(106, 67, 130, 20);
		add(textFieldClientId);
		
		JLabel lblDate = new JLabel("Date:");
		lblDate.setBounds(31, 113, 58, 14);
		add(lblDate);
		
		textFieldDate = new JTextField();
		textFieldDate.setBounds(106, 110, 130, 20);
		add(textFieldDate);
		textFieldDate.setColumns(10);
		
		JLabel lblDescription = new JLabel("Products:");
		lblDescription.setBounds(31, 148, 58, 14);
		add(lblDescription);

	}
	
	public void addController(ActionListener controller){
		System.out.print("Set Order->Add controller");
		btnaddOrder.addActionListener(controller);
	}
}
